<!DOCTYPE html>
<!--导入thymeleaf命名空间-->
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>商品信息页面</title>
</head>
<body>
<tr>
    <h1>商品信息</h1>
    <table border="1">
        <tr>
            <th>编号</th>
            <th>名称</th>
            <th>价格</th>
            <th>供应商号</th>
            <th>简介</th>
            <th>备注</th>
            <th>操作</th>
            <th>操作</th>
        </tr>

        <tr th:each="good:${goo}">
            <th th:text="${good.getGno()}"></th>
            <th th:text="${good.getgname()}"></th>
            <th th:text="${good.getGprice()}"></th>
            <th th:text="${good.getSno()}"></th>
            <th th:text="${good.getGintroduction()}"></th>
            <th th:text="${good.getGremarks()}"></th>

            <td><a th:href="@{/admin/adminUser/changegoods(gno=${good.getGno()})}">编辑</a></td>
            <td><a th:href="@{/admin/adminUser/deletegoods(gno=${good.getGno()})}">删除</a></td>

        </tr>

    </table>

<tr><td><a href="/admin/adminUser/entergoods" rel="external nofollow">增加新商品</a></td></tr>
<tr><td><a href="/admin/adminUser/index" rel="external nofollow">菜单栏</a></td></tr>

</body>
</html>
